﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Teein.Proxy.Bot.DAL;
using Teein.Proxy.Bot.Model;
using MongoDB.Driver;

namespace Teein.Proxy.Bot.BLL
{
    public class Account
    {
        private AccountDAL pd = new AccountDAL();

        public bool Insert(AccountInfo pi)
        {
            return pd.Insert(pi);
        }

        public bool Update(AccountInfo pi)
        {
            return pd.Update(pi);
        }

        public bool Delete(AccountInfo pi)
        {
            return pd.Delete(pi);
        }
        public bool Delete(IMongoQuery mq = null)
        {
            return pd.Delete(mq);
        }
        public AccountInfo FindOne(IMongoQuery mq = null)
        {
            return pd.FindOne(mq);
        }

        public IList<AccountInfo> Find(IMongoQuery mq = null)
        {

            return pd.Find(mq);
        }
    }
}
